import { Base } from '../utils/base.js';
class Goods extends Base {
    constructor() {
        super();
    }
	jsapiParams(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integral/get_jsapi_params',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	orderDetails(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/order_details',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	getMpCxPayOrder(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/getMpCxPayOrder',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	get_cz(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/ye_cz',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	getmoneys(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/getmoneys',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	
	goddsDetails(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/details',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	toExchange(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integral/exchange',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	toMoney(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integral/to_money',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	exchange(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/exchange',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	getexchange(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/getexchange',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	
	goodsRecord(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/goods_record',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	integralRecord(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.Integralgoods/integral_record',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
    Lists(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Integralgoods/lists',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
	Details(callback, params) {
	    var that = this;
	    var param = {
	        url: 'api/lecturehall/details',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	confirm_receipt(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.integralgoods/confirm_receipt',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	tk(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.integralgoods/getcode',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	tx_record(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.integral/tx_record',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	change_record(callback, params) {
	    var that = this;
	    var param = {
	        url: 'addons/zpwxsys/v1.integral/change_record',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	money_cz(callback, params) {
	    var that = this;
	    var param = {
	        url: '/addons/zpwxsys/v1.Integral/money_cz',
	        type: 'post',
	        data: params,
	        sCallback: function (data) {
	            data = data;
	            if (callback) {
	                callback(data);
	            }
	        }
	    };
	    this.request(param);
	}
	   
   
}
export { Goods };
